import request from '@/utils/request'

// 查询指标点列表
export function listIndicator(query) {
  return request({
    url: '/pg/indicator/list',
    method: 'get',
    params: query
  })
}

// 查询指标点详细
export function getIndicator(indicatorId) {
  return request({
    url: '/pg/indicator/' + indicatorId,
    method: 'get'
  })
}

// 新增指标点
export function addIndicator(data) {
  return request({
    url: '/pg/indicator',
    method: 'post',
    data: data
  })
}

// 修改指标点
export function updateIndicator(data) {
  return request({
    url: '/pg/indicator',
    method: 'put',
    data: data
  })
}

// 删除指标点
export function delIndicator(indicatorId) {
  return request({
    url: '/pg/indicator/' + indicatorId,
    method: 'delete'
  })
}
